#include <fstream>
#include <iostream>
#include <iterator>
#include <string>
#include <vector>

#include <numeric>
using namespace std;
int main(int argc, char const *argv[]) {
  /* code */
  vector<string> v;
  ifstream in1("chapter10\\1.txt");
  istream_iterator<string> is_iter(in1), eof;
  while (is_iter != eof) {
    v.push_back(*is_iter++);
  }
  // copy(is_iter, eof, back_inserter(v));
  for (auto c : v) {
    cout << c << endl;
  }
  return 0;
}
